using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._TopographicProductionTools._Cartography._CartographicRefinement
{
    /// <summary>
    /// <para>Apply Visual Specification To Map</para>
    /// <para>Applies symbols and Arcade expressions to layers in a map based on the symbols and rules defined in a visual specification database.</para>
    /// <para>根据可视化规范数据库中定义的符号和规则，将符号和 Arcade 表达式应用于地图中的图层。</para>
    /// </summary>    
    [DisplayName("Apply Visual Specification To Map")]
    public class ApplyVisualSpecificationToMap : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ApplyVisualSpecificationToMap()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_map">
        /// <para>Input Map</para>
        /// <para>The map containing layers to which symbols and Arcade expressions will be applied.</para>
        /// <para>包含将应用符号和 Arcade 表达式的图层的地图。</para>
        /// </param>
        /// <param name="_vs_workspace">
        /// <para>Visual Specification Workspace</para>
        /// <para>The database containing the visual specification rules.</para>
        /// <para>包含可视规范规则的数据库。</para>
        /// </param>
        /// <param name="_specification">
        /// <para>Visual Specification</para>
        /// <para>The specification rules that will be converted to Arcade and applied to the map layers.</para>
        /// <para>将转换为 Arcade 并应用于地图图层的规范规则。</para>
        /// </param>
        public ApplyVisualSpecificationToMap(object _in_map, object _vs_workspace, object _specification)
        {
            this._in_map = _in_map;
            this._vs_workspace = _vs_workspace;
            this._specification = _specification;
        }
        public override string ToolboxName => "Topographic Production Tools";

        public override string ToolName => "Apply Visual Specification To Map";

        public override string CallName => "topographic.ApplyVisualSpecificationToMap";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_map, _vs_workspace, _specification, _in_style_file, _updated_map];

        /// <summary>
        /// <para>Input Map</para>
        /// <para>The map containing layers to which symbols and Arcade expressions will be applied.</para>
        /// <para>包含将应用符号和 Arcade 表达式的图层的地图。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Map")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_map { get; set; }


        /// <summary>
        /// <para>Visual Specification Workspace</para>
        /// <para>The database containing the visual specification rules.</para>
        /// <para>包含可视规范规则的数据库。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Visual Specification Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _vs_workspace { get; set; }


        /// <summary>
        /// <para>Visual Specification</para>
        /// <para>The specification rules that will be converted to Arcade and applied to the map layers.</para>
        /// <para>将转换为 Arcade 并应用于地图图层的规范规则。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Visual Specification")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _specification { get; set; }


        /// <summary>
        /// <para>Input Style File</para>
        /// <para>The style file (.stylx) that contains the symbols defined in the visual specification rules.</para>
        /// <para>样式文件 （.stylx），其中包含在视觉规范规则中定义的符号。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Style File")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _in_style_file { get; set; } = null;


        /// <summary>
        /// <para>Updated Map</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Map")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _updated_map { get; set; }


        public ApplyVisualSpecificationToMap SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}